package com.webvihar.common.db;

import com.db4o.Db4oEmbedded;
import com.db4o.config.EmbeddedConfiguration;

/**
 * DbconfigurationBuilder.java
 * 
 * @author Viswanath Kumar Sandu
 * 
 */
public class DbConfigurationBuilder {
	/**
	 * Used to perform meta operations for our DB such as creating indexes and
	 * applying cascade rules. Examples are listed inside the method.
	 */
	public EmbeddedConfiguration getConfiguration() {
		EmbeddedConfiguration newConfiguration = Db4oEmbedded.newConfiguration();
		newConfiguration.common().activationDepth(DbService.GLOBAL_QUERY_DEPTH);
		return newConfiguration;
	}
}
